<p>
    <!-- <i class="fas fa-star"></i> -->
    <i *ngFor="let star of stars; let i = index;" 
        class="fa-star" 
        [ngClass]="{'fas' : !star, 'far' : star}"
        (click)="clickStar(i)"></i>
    <span>{{rating}}星</span>
    <!-- <i class="fas fa-star-half-alt"></i>f -->
</p>